#include <fstream>

int main()
{
   std::ifstream input("in.txt");
   std::ofstream output("out.txt");

   int n;
   int x = 0;
   int y = 0;
   int dx = 1;
   int dy = 0;

   input >> n;

   output << x << " " << y << "\n";

   for (int i = 1; i < n; i++)
   {
      x += dx;
      y += dy;
      output << x << " " << y << "\n";

      if (dx == 0)
      {
         dx = -dy + (dy >= 0 ? -1 : 1);
         dy = 0;
      }
      else
      {
         dy = dx;
         dx = 0;
      }
   }

   return 0;
}